package application.utils;

import java.awt.Container;
import java.awt.Dimension;
import java.awt.Toolkit;

public final class Localizator{
	public static void onScreenCentralize(Container container, int newContainerWidth, int newContainerHeight){
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		container.setBounds((int)(screenSize.getWidth() / 2 - newContainerWidth / 2), (int)(screenSize.getHeight() / 2 - newContainerHeight / 2), newContainerWidth, newContainerHeight);
	}
}
